dojo.declare("DAdminOrderAllPg", wm.Page, {
start: function() {
},
"preferredDevice": "desktop",
_end: 0
});

DAdminOrderAllPg.widgets = {
orderLiveVariable1: ["wm.LiveVariable", {"type":"com.servicelivedb.data.Order"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lookup1.selectedItem.projectId","targetProperty":"filter.project.projectId"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Order","view":[
{"caption":"OrderId","sortable":true,"dataIndex":"orderId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":3000,"subType":null,"widthUnits":"px"},
{"caption":"Status","sortable":true,"dataIndex":"status","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3001,"subType":null,"widthUnits":"px"},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3002,"subType":null,"widthUnits":"px"},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"updatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3003,"subType":null,"widthUnits":"px"},
{"caption":"Comments","sortable":true,"dataIndex":"comments","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3004,"subType":null,"widthUnits":"px"},
{"caption":"TotalPrice","sortable":true,"dataIndex":"totalPrice","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3005,"subType":null,"widthUnits":"px"},
{"caption":"ContactNum","sortable":true,"dataIndex":"contactNum","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3006,"subType":null,"widthUnits":"px"},
{"caption":"CouponCode","sortable":true,"dataIndex":"couponCode","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3007,"subType":null,"widthUnits":"px"},
{"caption":"Discount","sortable":true,"dataIndex":"discount","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3008,"subType":null,"widthUnits":"px"},
{"caption":"OrderDt","sortable":true,"dataIndex":"orderDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3009,"subType":null,"widthUnits":"px"}
]}, {}]
}],
orderitemsLiveVariable1: ["wm.LiveVariable", {"type":"com.servicelivedb.data.OrderItems"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.OrderItems","view":[
{"caption":"OrderItemId","sortable":true,"dataIndex":"orderItemId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":7000,"subType":null,"widthUnits":"px"},
{"caption":"Quantity","sortable":true,"dataIndex":"quantity","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7001,"subType":null,"widthUnits":"px"},
{"caption":"Price","sortable":true,"dataIndex":"price","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7002,"subType":null,"widthUnits":"px"},
{"caption":"Comments","sortable":true,"dataIndex":"comments","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7003,"subType":null,"widthUnits":"px"},
{"caption":"Status","sortable":true,"dataIndex":"status","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7004,"subType":null,"widthUnits":"px"},
{"caption":"DlvrQuantity","sortable":true,"dataIndex":"dlvrQuantity","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7005,"subType":null,"widthUnits":"px"}
]}, {}],
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"orderDojoGrid.selectedItem","targetProperty":"filter.order"}, {}]
}]
}],
lvProjects: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.servicelivedb.data.Project"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Project","view":[
{"caption":"ProjectId","sortable":true,"dataIndex":"projectId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ProjectName","sortable":true,"dataIndex":"projectName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Website","sortable":true,"dataIndex":"website","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Description","sortable":true,"dataIndex":"description","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"Image","sortable":true,"dataIndex":"image","type":"byte","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null}
]}, {}]
}],
orderitemsDialog: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget","desktopHeight":"236px","height":"236px","title":"orderitems","width":"500px"}, {}, {
containerWidget: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
orderitemsLiveForm1: ["wm.LiveForm", {"alwaysPopulateEditors":true,"fitToContentHeight":true,"height":"166px","horizontalAlign":"left","liveEditing":false,"margin":"4","verticalAlign":"top"}, {"onSuccess":"orderitemsLivePanel1.popupLiveFormSuccess"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"orderitemsDojoGrid.selectedItem","targetProperty":"dataSet"}, {}]
}],
orderItemIdEditor1: ["wm.Number", {"border":"0","caption":"OrderItemId","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"zero","formField":"orderItemId","height":"26px","required":true,"width":"100%"}, {}],
quantityEditor1: ["wm.Number", {"border":"0","caption":"Quantity","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"zero","formField":"quantity","height":"26px","width":"100%"}, {}],
priceEditor1: ["wm.Number", {"border":"0","caption":"Price","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"zero","formField":"price","height":"26px","width":"100%"}, {}],
commentsEditor1: ["wm.Text", {"caption":"Comments","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"comments","height":"26px","maxChars":100,"width":"100%"}, {}],
statusEditor1: ["wm.Text", {"caption":"Status","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"status","height":"26px","maxChars":20,"width":"100%"}, {}],
dlvrQuantityEditor1: ["wm.Number", {"border":"0","caption":"DlvrQuantity","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"zero","formField":"dlvrQuantity","height":"26px","width":"100%"}, {}]
}]
}],
buttonBar: ["wm.ButtonBarPanel", {"border":"1,0,0,0","borderColor":"black","desktopHeight":"33px","height":"33px"}, {}, {
orderitemsSaveButton: ["wm.Button", {"border":"1","caption":"Save","margin":"4"}, {"onclick":"orderitemsLiveForm1.saveDataIfValid"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"orderitemsLiveForm1.invalid","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
orderitemsCancelButton: ["wm.Button", {"border":"1","caption":"Cancel","margin":"4"}, {"onclick":"orderitemsDialog.hide","onclick1":"orderitemsLiveForm1.cancelEdit"}]
}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"autoScroll":true,"height":"30px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
lookup1: ["wm.Lookup", {"caption":"Project","dataType":"com.servicelivedb.data.Project","dataValue":undefined,"displayField":"projectName","displayValue":""}, {"onchange":"orderLiveVariable1"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvProjects","targetProperty":"dataSet"}, {}]
}]
}]
}],
panel2: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel3: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"70%"}, {}, {
orderLivePanel1: ["wm.LivePanel", {"autoScroll":false,"horizontalAlign":"left","verticalAlign":"top"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"orderDialog","targetId":null,"targetProperty":"dialog"}, {}],
wire1: ["wm.Wire", {"source":"orderLiveForm1","targetId":null,"targetProperty":"liveForm"}, {}],
wire2: ["wm.Wire", {"source":"orderDojoGrid","targetId":null,"targetProperty":"dataGrid"}, {}],
wire3: ["wm.Wire", {"source":"orderSaveButton","targetId":null,"targetProperty":"saveButton"}, {}]
}],
orderDojoGrid: ["wm.DojoGrid", {"columns":[
{"show":true,"field":"orderId","title":"OrderId","width":"80px","align":"right","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"status","title":"Status","width":"70px","align":"left","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"address","title":"Address","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"updatedBy","title":"UpdatedBy","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"comments","title":"Comments","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"totalPrice","title":"TotalPrice","width":"80px","align":"right","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"contactNum","title":"ContactNum","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"couponCode","title":"CouponCode","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"discount","title":"Discount","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"orderDt","title":"OrderDt","width":"80px","align":"left","formatFunc":"wm_date_formatter","formatProps":{"formatLength":"medium"},"editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"78px","align":"left","expression":"\"<div class='MobileRowTitle'>\" +\n\"OrderId: \" + ${orderId} +\n\"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Status: \" + ${status}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"TotalPrice: \" + ${totalPrice}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"OrderDt: \" + ${wm.runtimeId}.formatCell(\"orderDt\", ${orderDt}, ${this}, ${wm.rowId})\n + \"</div>\"\n\n","mobileColumn":true}
],"height":"100%","localizationStructure":{},"margin":"4","minDesktopHeight":60,"width":"671px"}, {"onCellDblClick":"orderLivePanel1.popupLivePanelEdit","onSelect":"orderitemsLiveVariable1"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"orderLiveVariable1","targetProperty":"dataSet"}, {}]
}]
}],
orderGridButtonPanel: ["wm.Panel", {"desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
orderUpdateButton: ["wm.Button", {"border":"1","caption":"Update","margin":"4"}, {"onclick":"orderLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"orderDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
orderDeleteButton: ["wm.Button", {"border":"1","caption":"Delete","margin":"4"}, {"onclick":"orderLiveForm1.deleteData"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"orderDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}]
}]
}]
}],
panel4: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"30%"}, {}, {
orderitemsLivePanel1: ["wm.LivePanel", {"autoScroll":false,"horizontalAlign":"left","verticalAlign":"top"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"orderitemsDialog","targetId":null,"targetProperty":"dialog"}, {}],
wire1: ["wm.Wire", {"source":"orderitemsLiveForm1","targetId":null,"targetProperty":"liveForm"}, {}],
wire2: ["wm.Wire", {"source":"orderitemsDojoGrid","targetId":null,"targetProperty":"dataGrid"}, {}],
wire3: ["wm.Wire", {"source":"orderitemsSaveButton","targetId":null,"targetProperty":"saveButton"}, {}]
}],
orderitemsDojoGrid: ["wm.DojoGrid", {"columns":[
{"show":false,"field":"orderItemId","title":"OrderItemId","width":"80px","align":"right","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":true,"field":"price","title":"Price","width":"46px","align":"right","formatFunc":"","mobileColumn":false},
{"show":true,"field":"quantity","title":"Quantity","width":"80px","align":"right","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"\"<div class='MobileRowTitle'>\" +\n\"Price: \" + ${price} +\n\"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Quantity: \" + ${quantity}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Status: \" + ${status}\n + \"</div>\"\n\n","mobileColumn":true},
{"show":false,"field":"comments","title":"Comments","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"status","title":"Status","width":"62px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"dlvrQuantity","title":"DlvrQuantity","width":"80px","align":"right","formatFunc":"","mobileColumn":false}
],"dsType":"com.servicelivedb.data.OrderItems","height":"100%","margin":"4","minDesktopHeight":60}, {"onCellDblClick":"orderitemsLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"orderitemsLiveVariable1","targetProperty":"dataSet"}, {}]
}]
}],
orderitemsGridButtonPanel: ["wm.Panel", {"desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
orderitemsUpdateButton: ["wm.Button", {"border":"1","caption":"Update","margin":"4"}, {"onclick":"orderitemsLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"orderitemsDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
orderitemsDeleteButton: ["wm.Button", {"border":"1","caption":"Delete","margin":"4"}, {"onclick":"orderitemsLiveForm1.deleteData"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"orderitemsDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}]
}]
}]
}]
}]
}]
};

DAdminOrderAllPg.prototype._cssText = '';
DAdminOrderAllPg.prototype._htmlText = '';